﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace UIDevBll
{
    public class SysHelper
    {

    }

    public class Premission
    {
        private Member _CurrentUser;
        public Member CurrentUser
        {
            get
            {
                if (_CurrentUser == null)
                    _CurrentUser = HttpContext.Current.Session[Member.cost_SessionName] as Member;

                return _CurrentUser;
            }
        }

        public bool IsLogin
        {
            get { return this.CurrentUser != null; }
        }

        public static void SetCurrentUser(Member member)
        {
            HttpContext.Current.Session[Member.cost_SessionName] = member;
        }

    }
}
